home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / ewl / ewl_icon.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  1KB  |  56 lines

  1. #ifndef EWL_ICON_H
  2. #define EWL_ICON_H
  3.  
  4. /**
  5.  * @file ewl_icon.h
  6.  *
  7.  * @{
  8.  */
  9.  
  10. #define EWL_ICON(icon) ((Ewl_Icon *)icon)
  11.  
  12. typedef struct Ewl_Icon Ewl_Icon;
  13. struct Ewl_Icon
  14. {
  15.     Ewl_Box box;
  16.     Ewl_Widget *label;
  17.     Ewl_Widget *preview;
  18.     Ewl_Widget *menu;
  19.     Ewl_Widget *extended;
  20.  
  21.     Ewl_Icon_Type type;
  22.     unsigned int editable;
  23. };
  24.  
  25. Ewl_Widget    *ewl_icon_new(void);
  26. int         ewl_icon_init(Ewl_Icon *icon);
  27.  
  28. void         ewl_icon_type_set(Ewl_Icon *icon, Ewl_Icon_Type type);
  29. Ewl_Icon_Type     ewl_icon_type_get(Ewl_Icon *icon);
  30.  
  31. void         ewl_icon_image_set(Ewl_Icon *icon, const char *file, 
  32.                         const char *key);
  33. const char     *ewl_icon_image_file_get(Ewl_Icon *icon);
  34.  
  35. void         ewl_icon_editable_set(Ewl_Icon *icon, unsigned int e);
  36. unsigned int     ewl_icon_editable_get(Ewl_Icon *icon);
  37.  
  38. void         ewl_icon_label_set(Ewl_Icon *icon, const char *label);
  39. const char    *ewl_icon_label_get(Ewl_Icon *icon);
  40.  
  41. void         ewl_icon_extended_data_set(Ewl_Icon *icon, Ewl_Widget *ext);
  42. Ewl_Widget    *ewl_icon_extended_data_get(Ewl_Icon *icon);
  43.  
  44. void         ewl_icon_menu_set(Ewl_Icon *icon, Ewl_Widget *menu);
  45. Ewl_Widget    *ewl_icon_menu_get(Ewl_Icon *icon);
  46.  
  47. void         ewl_icon_constrain_set(Ewl_Icon *icon, unsigned int val);
  48. unsigned int     ewl_icon_constrain_get(Ewl_Icon *icon);
  49.  
  50. /**
  51.  * @}
  52.  */
  53.  
  54. #endif
  55.  
  56.